cc := gcc
create_thread: 01_create_thread.c
	$(cc) $^ -o $@
	./$@
	rm $@


thread_detach: 02_thread_detach.c
	$(cc) $^ -o $@
	./$@
	rm $@

thread_cancel: 03_thread_cancel.c
	$(cc) $^ -o $@
	./$@
	rm $@

thread_mutex: 04_thread_mutex.c
	$(cc) $^ -o $@
	./$@
	rm $@


thread_cond: 05_thread_cond.c
	$(cc) $^ -o $@
	./$@
	rm $@

thread_sem: 06_thread_sem.c
	$(cc) $^ -o $@
	./$@
	rm $@


practice: 07_practice.c
	$(cc) $^ -o $@
